import {
  request
} from '../../request/index'
import regeneratorRuntime from '../../lib/runtime/runtime'
Page({

  data: {
    list:[],
    offList:[],
    selList:[],
    qufList:[],
    golList:[],
  },

  onLoad: function (options) {
    this.getTopList()
  },
  //获取榜单信息
  async getTopList(){
    let res = await request({url:"/toplist"})
    this.setData({
      offList:res.data.list.slice(0,4),
      selList:res.data.list.slice(4,11),
      qufList:res.data.list.slice(11,24),
      golList:res.data.list.slice(24,32),
    })
  }
})